package com.eet.message.handler.direct;

import com.eet.message.constants.CommonConstants;
import com.eet.message.handler.MessageHandler;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 邮件
 *
 * @author zheng.zhang
 */
@Component
@RabbitListener(queues = {CommonConstants.DIRECT_SMS_QUEUE})
public class DirectSmsHandler implements MessageHandler {

    @Override
    @RabbitHandler
    public void receiveMessage(String message) {
        System.out.println("发送短信-->收到的消息为: " + message);
    }
}
